﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TrackSystem.Entities.Models
{
    /// <summary>
    /// 逻辑组功能
    /// </summary>
    public class LogicGroupTable
    {
        /// <summary>
        /// 统一标识符
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Display(Name = "统一标识符")]
        public int Id { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [Required]
        [Display(Name = "逻辑组名称")]
        public string Name { get; set; }

        /// <summary>
        /// 设备描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 该设备包括的通道
        /// </summary>
        public List<LogicTable> Logics { get; set; }
    }
}
